-- GENERATED SPELL FOR [Lady Catriona Von'Indi] --


function spell0_19872(pUnit, Event) --@Dispel Magic,n/a--
pUnit:FullCastSpellOnTarget(15090,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19872', 576, 1)
end

function spell1_19872(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(29564,pUnit)
pUnit:RegisterEvent('Sorts_19872', 2500, 1)
end

function spell2_19872(pUnit, Event) --@Holy Fire,n/a--
pUnit:FullCastSpellOnTarget(29563,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19872', 11000, 1)
end

function spell3_19872(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(29408,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19872', 30287, 1)
end

function Sorts_19872(pUnit, Event)
local choix_sorts_19872 = math.random(0, 3)
if choix_sorts_19872 == 0 then
pUnit:RegisterEvent('spell0_19872', 1, 1)
end
if choix_sorts_19872 == 1 then
pUnit:RegisterEvent('spell1_19872', 1, 1)
end
if choix_sorts_19872 == 2 then
pUnit:RegisterEvent('spell2_19872', 1, 1)
end
if choix_sorts_19872 == 3 then
pUnit:RegisterEvent('spell3_19872', 1, 1)
end
end

function mob19872_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19872', math.random(1500, 3000), 1)
end

function mob19872_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19872_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19872_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19872, 1, 'mob19872_Action')
RegisterUnitEvent(19872, 2, 'mob19872_Leave')
RegisterUnitEvent(19872, 3, 'mob19872_Kill')
RegisterUnitEvent(19872, 4, 'mob19872_Die')
